package com.spr.gw.common;

public enum ResponseCode {
    SUCCESS(0, "SUCCESS"),
    ERROR(99, "ERROR"),
    NEED_LOGIN(10, "NEED_LOGIN"),
    ILLEGAL_ARGUMENT(5, "参数错误"),
    EXCEPTION(9, "EXCEPTION"),
    UPDATE_ERROR(11, "更新失败"),
    DELETE_ERROR(12, "删除失败"),
    ADD_ERROR(8, "添加失败"),
    VERTIFY_CODE_ERROR(14, "验证码错误"),
    QUERY_ERROR(15, "查询错误"),
    NO_RESULT(16, "查询无数据"),
    USER_NOT_EXIST(13, "账号或者密码错误");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
